package com.ms.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "分类列表返回的数据")
public class GenreVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(name = "主键id")
    private Integer id;
    @Schema(name = "分类名称")
    private String name;
    @Schema(name = "分类级别")
    private Integer level;
    @Schema(name = "分类描述")
    private String description;
    @Schema(name = "父级分类Id")
    private Integer parentId;
    @Schema(name = "子分类")
    private List<GenreVO> children; // 子分类
}
